package com.yugao.fintech.draper.auth.api;

import com.yugao.fintech.draper.auth.dto.ClientDetailsDTO;
import com.yugao.fintech.draper.common.constant.ServerConstant;
import com.yugao.fintech.draper.core.constant.SecurityConstants;
import com.yugao.fintech.draper.core.model.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "clientDetailsFeignApi", value = ServerConstant.DRAPER_ADMIN)
public interface ClientDetailsFeignApi {
	@GetMapping(value = "/client/findById", headers = SecurityConstants.HEADER_INNER)
	ResultVO<ClientDetailsDTO> findById(@RequestParam("id") String id);

}
